package main

import (
	"github.com/gin-gonic/gin"
	"log"
	"radar-app/app/dao"
	"radar-app/router"
)

func init() {

}

func main() {
	log.Println("----------------- main init -----------------")
	dao.InitSqlite()

	gin.SetMode("debug")

	r := router.InitRouter()
	err := r.Run(":8081")
	if err != nil {
		log.Fatalln("Something terrible happened:", err)
	}
}
